import { defineStore } from "pinia";

import { store } from "@/store";

import { useStorage } from "@vueuse/core";

export const useUserStore = defineStore("user", () => {
  const token = useStorage("accessToken", "");

  return {
    token
  };
});

export function useUserStoreHook() {
  return useUserStore(store);
}
